package com.fasteat.menu.service.client;

import com.fasteat.common.entity.Result;
import com.fasteat.menu.entity.client.Message;
import com.fasteat.menu.handler.MessageFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author run
 * @since 2021/3/9 20:02
 */
@FeignClient(value = "fasteat-message-service", fallback = MessageFallback.class)
public interface MessageClient {

    @PostMapping("/message/userId")
    public Result pushMessageToUser(Message message);
}
